import type { profileTyParams, ProfileTypeItem } from '@/types/member'
import { http } from '../utils/request'
export const getProfileAPI = () => {
    return http<ProfileTypeItem>({
        url: '/member/profile',
        method: 'GET'
    })
}

export const putMemberProfileAPI = (data: profileTyParams) => {
    return http<profileTyParams>({
        url: '/member/profile',
        method: 'PUT',
        data,
    })
}